﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace AvantGameMachine.Graphics
{
    public struct Size2D
    {
        private SizeF mySize;

        public Size2D(float _w, float _h)
        {
            mySize = new SizeF(_w, _h);
        }

        public Size2D(int _w, int _h)
        {
            mySize = new SizeF(_w, _h);
        }

        public Size2D(Size _size)
        {
            mySize = _size;
        }

        public SizeF Szf
        {
            get { return mySize;  }
            set { mySize = value; }
        }

        public Size Sz
        {
            get { return new Size((int)mySize.Width,(int)mySize.Height); }
            set { mySize = value; }
        }

        public float Widthf
        {
            get { return mySize.Width;  }
            set { mySize.Width = value; }
        }

        public int Width
        {
            get { return (int)mySize.Width; }
            set { mySize.Width = value; }
        }

        public float Heightf
        {
            get { return mySize.Height; }
            set { mySize.Height = value; }
        }

        public int Height
        {
            get { return (int)mySize.Height; }
            set { mySize.Height = value; }
        }

    }
}
